package com.tensquare.qa;
import com.tensquare.util.IdWorker;
import com.tensquare.util.JwtUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.CrossOrigin;

@CrossOrigin
@EnableEurekaClient
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class QAApplication {

	public static void main(String[] args) {
		SpringApplication.run(QAApplication.class, args);
	}

	@Bean
	public IdWorker IDWorkker(){
		return new IdWorker(1, 1);
	}


	@Bean
	public JwtUtil jwtUtil(){
		return new JwtUtil();
	}


}
